<%@ taglib uri="/struts-tags" prefix="s" %>

<div id="content">
<div class="post" >
	<h2 class="title"><s:property value="league.name"/>  League Members</h2>

	<div class="entry">
		<p class="meta"><small></small></p>
				<table width="100%" align="center" border="0">
			<tr>
				<th>Name</th>
				<th>Email</th>
				<th>Action</th>
			</tr>
		<s:iterator value="members">
			<tr class="rowA">
				<td>
					<s:url id="details" namespace="/user" action="details">
						<s:param name="id" value="id"/>
					</s:url>
					<s:a href="%{details}">
						<s:property value="firstName"/> <s:property value="lastName"/>
					</s:a>
				</td>
				<td><s:property value="email"/></td>
				<td>
					<s:url id="edit" namespace="/user" action="edit">
						<s:param name="id" value="id"/>
					</s:url>
					<s:a href="%{edit}">Edit</s:a>
					<s:url id="delete" namespace="/user" action="delete">
						<s:param name="id" value="id"/>
					</s:url>
					<s:a href="%{delete}" onclick="return window.confirm('Do you really delete this user?');">Delete</s:a>
				</td>
			</tr>
		</s:iterator>
		</table>	
	</div>
</div>
</div>
